package edu.wpi.first.wpilibj.templates;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import edu.wpi.first.wpilibj.PIDSource;
import edu.wpi.first.wpilibj.Servo;

/**
 *
 * @author Nathan
 */
public class PIDServo implements PIDSource {

	Servo servo;
	double servoAngle;

	public PIDServo(Servo servo) {
		this.servo = servo;
	}

	public double pidGet() {
		return getAngle();
	}

	public void setAngle(double angle) {
		servoAngle = angle;
		servo.setAngle(angle);
	}

	public double getAngle() {
		return servoAngle;
	}
}
